package com.jisu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jisu.common.ResultVo;
import com.jisu.dto.AdminDTO;
import com.jisu.dto.LoginRequest;
import com.jisu.pojo.Admin;

import java.util.List;

public interface IAdminService extends IService<Admin> {
    ResultVo<Admin> addAdmin(Admin admin);
    ResultVo deleteAdmin(List<Integer> ids);
    ResultVo<Admin> updateAdmin(Admin admin);
    ResultVo<IPage<Admin>> getAdminInPage(AdminDTO adminDTO);
    ResultVo<String> login(LoginRequest loginRequest);

}
